import React from 'react'
import { useLocation } from 'react-router-dom'

export default function TestState() {
    // let x = useLocation()
    // console.log('x: ',x)
    let {state:{id, title}} = useLocation()
    return (
        <div>
            <h3>TestState</h3>
            <p>id: {id}</p>
            <p>title: {title}</p>
        </div>
    )
}
